package com.itheima.domain;

import java.io.Serializable;
/*
    用户实体类
 */
public class User implements Serializable {

    //用户名
    private String username;
    //用户密码
    private String password;
    //无参构造
    public User() {
    }
    //带参构造
    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }
    //get set 方法



    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
